﻿@model RBS.Core.Model.Hotel.H_Hotel_Seat
@{
    ViewBag.Title = "座位信息编辑";
    Layout = "~/Views/Shared/_Layout.cshtml"; 
} 
<script type="text/javascript">

    
    $(document).ready(function () {
        $(".upload-img").each(function () {
            $(this).InitSWFUpload({ sendurl: "@Url.Action("UploadSeatImg")", flashurl: "@Url.Content("~/scripts/swfupload/swfupload.swf")" });
  });
    });
    
 

</script>
<!--导航栏-->
@{
    @Html.Partial("_Location");
}
<!--/导航栏-->



<!--内容-->
<div class="content-tab-wrap">
    <div id="floatHead" class="content-tab">
        <div class="content-tab-ul-wrap">
            <ul>
                <li><a href="javascript:;" onclick="tabs(this);" class="selected">座位信息编辑</a></li>
            </ul>
        </div>
    </div>
</div>
@using (Html.BeginForm("HotelSeatEdit", "Hotel", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true) 
    @Html.HiddenFor(model => model.Id)
    @Html.HiddenFor(model => model.HotelId)
    <div class="tab-content">
        <dl>
            <dt>编号</dt>
            <dd>
                @Html.TextBoxFor(model => model.RoomNumber, null, new { @class = "input small", datatype = "s2-50", sucmsg = " " ,ajaxurl = Model.Id > 0 ? "" :@Url.Action("IsSeatReg")+"?type=RoomNumber"  })
                <span class="Validform_checktip">*房号</span>
            </dd>
        </dl>
        <dl>
            <dt>座位名</dt>
            <dd>
                @Html.TextBoxFor(model => model.Name, null, new { @class = "input normal", datatype = "s2-50", sucmsg = " ",ajaxurl = Model.Id > 0 ? "" :@Url.Action("IsSeatReg")+"?type=Name"  })
                <span class="Validform_checktip">*房号</span>
            </dd>
        </dl>
       @* <dl>
            <dt>楼层</dt>
            <dd>
                <div class="rule-multi-radio">
                    <label for="Floor">一楼</label>
                    @Html.RadioButtonFor(model => model.Floor, "一楼", new { @id = "radio1", @name = "rdolstState" })
                    <label for="Floor">二楼</label>
                    @Html.RadioButtonFor(model => model.Floor, "二楼", new { @id = "radio2", @name = "rdolstState" })
                </div>
                <span class="Validform_checktip">*楼层</span>

            </dd>
        </dl>*@
        <dl>
            <dt>类别</dt>
            <dd>
                <div class="rule-multi-radio">
                    <label for="Category">包间</label>
                    @Html.RadioButtonFor(model => model.Category, "包间", new { @id = "radio1", @name = "rdolstState" })
                    <label for="Category">大厅</label>
                    @Html.RadioButtonFor(model => model.Category, "大厅", new { @id = "radio2", @name = "rdolstState" })
                     <label for="Category">加台</label>
                    @Html.RadioButtonFor(model => model.Category, "加台", new { @id = "radio3", @name = "rdolstState" })
                </div>
            </dd>
        </dl>


        <dl>
            <dt>人数</dt>
            <dd>

                @Html.TextBoxFor(model => model.Numbers, null, new { @class = "input small ", datatype = "n", sucmsg = " " })
                <span class="Validform_checktip">*人数</span>

            </dd>
        </dl>
        <dl>
            <dt>图片</dt>
            <dd> 
                 @Html.TextBoxFor(model => model.Picture, null, new { @class = "input normal upload-path"}) 
                       @*  <img id="ImgPresss" width="169" height="44" class="upload-img1" alt=""/>*@
				        <div class="upload-box upload-img"></div>   
              
            </dd>
        </dl>
        <dl>
            <dt>是否网上订桌</dt>
            <dd>
                <div class="rule-multi-radio">
                    <label for="AOBT">否</label>
                    @Html.RadioButtonFor(model => model.AOBT, "0", new { @id = "radio1", @name = "rdolstState" })
                    <label for="AOBT">是</label>
                    @Html.RadioButtonFor(model => model.AOBT, "1", new { @id = "radio2", @name = "rdolstState" })
                </div>

                <span class="Validform_checktip">*是否网上订桌</span>

            </dd>
        </dl>


    </div>
    <!--/内容-->

    <!--工具栏-->
    <div class="page-footer">
        <div class="btn-list">
            <input type="submit" value="提交保存" class="btn" />
            <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript: history.back(-1);" />

        </div>
        <div class="clear"></div>
    </div>
    <!--/工具栏-->
        
}










